#include "crow.h"
#include <string>

int main() {

	crow::SimpleApp app;

	CROW_ROUTE(app, "/")([](){
		 return "Hello Crow!";
	});
	CROW_ROUTE(app, "/usr/<str>")([](std::string name) {
			return "Hello " + name + "!";
	});
	CROW_ROUTE(app, "/usr/<str>/<int>")([](std::string name, int value) {
			return "Hello " + name + ", the value is " + std::to_string(value) + "!";
	});
	CROW_ROUTE(app, "/number/<int>")([](int value) {
			return "The value is " + std::to_string(value) + "!";
	});
	app.port(8080).multithreaded().run();
	return 0;
}
